<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<script src="./js/vue.js"></script>
<body>
    <div class="box">
    </div>
    <script>
        /* let vm = new Vue({
            el:'.box',
            render:function(createElement){
                return createElement('h1',{class:'box'},['hello',createElement('button',['按钮'])])
            }
        }) */
        let Cpn = {
            template:'<h2>{{msg}}</h2>',
            data(){
                return {
                    msg:'洋洋很帅'
                }
            }
        }
        const vm = new Vue({
            el:'.box',
            render:function(createElement){
                return createElement(Cpn)
            }
        })
    </script>
</body>
</html>